package cn.com.taiji.pos.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 菜品(品项)信息
 * </p>
 *
 * @author
 * @since 2021-03-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class MenuFoodItem implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId("ID")
    private String id;

    /**
     * 菜品中文名称
     */
    @TableField("NAME_ZH")
    private String nameZh;

    /**
     * 菜品英文名称
     */
    @TableField("NAME_EN")
    private String nameEn = "undefined";

    /**
     * 菜品编码
     */
    @TableField("CODE")
    private String code;

    /**
     * 菜品助记码
     */
    @TableField("MNEMONIC_CODE")
    private Integer mnemonicCode;

    /**
     * 所属菜品分类
     */
    @TableField("FOOD_CATEGORY_ID")
    private String foodCategoryId;

    /**
     * 计量单位
     */
    @TableField("MEASUREMENT_ID")
    private String measurementId;

    /**
     * 菜品图片
     */
    @TableField("PICTURE_PATH")
    private String picturePath;

    /**
     * OPX菜品ID
     */
    @TableField("OPX_ITEM_ID")
    private String opxItemId;

    /**
     * 菜品条码
     */
    @TableField("BAR_CODE")
    private String barCode;

    /**
     * 相关描述
     */
    @TableField("DESCRIPTION")
    private String description;

    /**
     * 排序序号
     */
    @TableField("SORT_NO")
    private Integer sortNo;

    /**
     * 状态(0:启用,1:停用)
     */
    @TableField("STATUS")
    private String status;

    /**
     * 创建人
     */
    @TableField("CREATOR_ID")
    private String creatorId;

    /**
     * 创建人姓名
     */
    @TableField("CREATOR_NAME")
    private String creatorName;

    /**
     * 创建时间
     */
    @TableField("CREATE_TIME")
    private LocalDateTime createTime;

    @TableField("FIRST_CHAR")
    private String firstChar;

    /**
     * 是否导出xml(0:否1:是)
     */
    @TableField("XML_OUT")
    private String xmlOut;

    @TableField("FOOD_COUNT")
    private BigDecimal foodCount;

    @TableField("STOREROOM_ID")
    private String storeroomId;

    @TableField("STALL")
    private String stall;

    @TableField(exist = false)
    private String priceId;
    @TableField(exist = false)
    private String prices;
    @TableField(exist = false)
    private String businessTypeId;
    @TableField(exist = false)
    private Double salePrice;


}
